package cn.ztydata.teachingsystem.heaven.web.dto.questionAnswer;

import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.Min;
import javax.validation.constraints.Size;

/**
 * Created by wl on 2015/3/19.
 */
public class QuestionInfoDto {

    @Min(value = 1, message = "ID不合法")
    private Long id; //ID

    @Size(min = 1, max = 100, message = "标题长度不合法")
    private String title; //标题

    private String content; //问题内容

    @Range(min = 0, max = 1, message = "是否为精选状态不对")
    private Integer best; //是否为精选（0不是 1是）

    @Min(value = 1, message = "群组ID不合法")
    private Long groupId; //群组ID

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getBest() {
        return best;
    }

    public void setBest(Integer best) {
        this.best = best;
    }

    public Long getGroupId() {
        return groupId;
    }

    public void setGroupId(Long groupId) {
        this.groupId = groupId;
    }
}
